package com.bridge.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bridge.mapper.UserMapper;
import com.bridge.model.User;
import com.bridge.service.IUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author bridge
 * @Date 2022/07/09/15:04
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {


    @Override
    public List<User> getAll() {

        return this.baseMapper.getAll();
    }

    @Override
    public User getOne(Long id) {

        return this.baseMapper.getOne(id);
    }

    @Override
    public void update(User user) {

        this.baseMapper.update(user);
    }

    @Override
    public void delete(Long id) {
        this.baseMapper.delete(id);
    }
}
